package com.example.evanproject.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.api.R;
import com.example.evanproject.domain.Course;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;
import java.util.Map;

/**
* @author hanxiaoqi
* @description 针对表【course】的数据库操作Service
* @createDate 2024-03-09 21:52:12
*/
public interface CourseService extends IService<Course> {

    public List<Course> selecttest();

    public Course selectListById(Integer cId) ;
    public Integer delectcoursebyid(Integer courseId);
    public List<Course> selectcoursebyuserid(Integer userid);
    public List<Map> allcoursebyteacherid(Integer tid);
    public Map coursebyteacherid(Integer courseid);
    public Integer addcourselist(String courseName, Integer tId, String courseNote, String courseStarttime, String courseEndtime, Integer courseTyid, Integer courseMoney, MultipartFile file);
    public List<Course> selectrotation();

    List<Course> couserBarnk();

    R<IPage<Course>> selectall2(Integer pageNum, Integer pageSize, String courseName);
}
